package com.icode.jsf.model;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 * User: alexz
 * Date: 14-11-4
 * Time: 上午10:58
 */
@ManagedBean
@RequestScoped
public class User {
    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isValid() {
        return username.equalsIgnoreCase("V587");
    }
}
